/**
 * Copyright (C)  Gadglet .
 *
 * This file is part of Gadglet
 *
 * Gadglet is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Gadglet is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with Gadglet. If not, see <http://www.gnu.org/licenses/>.
 */

package com.gadglet.params;

/**
 * Build-in Field level error codes. will be translated into localized text
 * on the Gadget UI using opensocial API
 *
 */
public enum FieldErrorTypes {
	
	FIELD_IS_EMPTY	("gadgetMsgFieldIsEmpty"),
	VALUE_NOT_VALID	("gadgetMsgFieldValueNotValid"),
	VALUE_NOT_VALID_URL	("gadgetMsgFieldValueNotValidURL");
	
	private String errorNessage ;
	
	FieldErrorTypes(String errorNessage){
		this.errorNessage = errorNessage;
	}
	
	public String getErrorMessage(){
		return this.errorNessage;
	}
}
